package org.geektimes.web.mvc.header;

import org.geektimes.web.mvc.header.matedata.ParamInfo;
import org.geektimes.web.mvc.header.matedata.WebContent;

import javax.servlet.http.HttpServletRequest;

/**
* 头类型的解析器  
* @author : lsq
*/
public class HeadParamParse extends AbstractParamParse {



	@Override
	protected Object parse0(WebContent webContent, ParamInfo paramInfo) {
		return transType(toHttp(webContent.getRequest()).getHeader(paramInfo.getName()) , paramInfo.getType());
	}


}

